package cn.itcast.day03.普通类作为方法的返回值和参数;

/*
  普通类作为方法的参数和返回值

    传递的是地址值
 */
public class Test {
    public static void main(String[] args) {
        Person person = new Person();
        method(person);

        Person person1 = method01();
        person1.eat();
    }

    public static void method(Person person) {
        person.eat();
    }

    public static Person method01(){
        Person person = new Person();
        return person;
    }
}
